

. .\Lib.MimeType.ps1


Set-PSDebug -Strict

Write-Host "`n--- Testing Mime Type ---"

[psobject] $Files = Get-ChildItem "C:\Windows\*.*"
[psobject] $File = $null
[string] $out = ""

$out = @"
Filename                               Four-CC             Mime-Type
-------------------------------------- ------------------- -------------------
"@
Write-Host $out

foreach( $File in $Files )
{
	if( $File -is [System.IO.FileInfo] )
	{
		$out = ""
		$out += $File.Name
		$out = $out.PadRight( 40 )
		$out += Get-ItemFourCC $File.FullName
		$out = $out.PadRight( 60 )
		$out += Get-ItemMimeType $File.FullName
		Write-Host $out
	}
}

